<script type="text/javascript">
    $(document).ready(
    	function()
    	{
            $("a.dictionary").click(
                function() {

                    Check = confirm('"' + $(this).attr("title") + '" jetzt laden?');
                    if (Check === true) {
                        var $dictionary = new RockitJS.Model.Database.Dictionary();

                        $.getJSON(
                            'download-dictionary.php',
                            $dictionary.createTranslate
                        );
                        //$("#message").html("Wörterbuch wurde geladen");
                    }
                }
            );
		}
    );
</script>

<ul id="downloadList">
    <li>
        Deutsch - Tagalog
        <a href="#" class="dictionary" name="german_tagalog" title="Deutsch - Tagalog">
            <div class="icon"></div>
        </a>
    </li>
</ul>